package pl.jtb.ctl.tabory.ui.boe.selection;

import java.util.List;
import java.util.Map;

import pl.jtb.ctl.tabory.dao.data.vo.CompositionVO;
import pl.jtb.ctl.tabory.dao.data.vo.VagonVO;
import pl.jtb.ctl.tabory.ui.editors.EditorStateSL;
import pl.jtb.ctl.tabory.ui.selection.ISelection;

public class CompositionSelection implements ISelection {

    private static final long serialVersionUID = 1L;

    private CompositionVO selectedComposition;
    private List<CompositionVO> listAllCompositions;
    private List<VagonVO> listAllVagons;
    private Map<CompositionVO, List<VagonVO>> mapCompositionVagonRelation;
    private EditorStateSL editorState;

    public CompositionVO getSelectedComposition() {
        return selectedComposition;
    }

    public void setSelectedComposition(CompositionVO selectedComposition) {
        this.selectedComposition = selectedComposition;
    }

    public List<CompositionVO> getListAllCompositions() {
        return listAllCompositions;
    }

    public void setListAllCompositions(List<CompositionVO> listAllCompositions) {
        this.listAllCompositions = listAllCompositions;
    }

    public Map<CompositionVO, List<VagonVO>> getMapCompositionVagonRelation() {
        return mapCompositionVagonRelation;
    }

    public void setMapCompositionVagonRelation(Map<CompositionVO, List<VagonVO>> mapCompositionVagonRelation) {
        this.mapCompositionVagonRelation = mapCompositionVagonRelation;
    }

    public void setEditorState(EditorStateSL editorState) {
        this.editorState = editorState;
    }

    public EditorStateSL getEditorState() {
        return editorState;
    }

    public void setListAllVagons(List<VagonVO> listAllVagons) {
        this.listAllVagons = listAllVagons;
    }

    public List<VagonVO> getListAllVagons() {
        return listAllVagons;
    }

    @Override
    public String toString() {
        return "CompositionSelection [selectedComposition=" + selectedComposition + ", listAllCompositions=" + listAllCompositions + ", listAllVagons=" + listAllVagons + ", mapCompositionVagonRelation=" + mapCompositionVagonRelation
                + ", editorState=" + editorState + "]";
    }

}
